 Ext.define('Tree', {
        extend: 'Ext.data.Model',
        fields: [
            {name: 'classname',  type: 'string'},
            {name: 'rootid',     type: 'string'},
            {name: 'ptype',      type: 'boolean'}
           
        ]
    });
Ext.define('MyTree.store.TreeStore',{
    extend:'Ext.data.TreeStore',
    model: 'Tree',
    //fields    : ['classname', 'rootid', 'ptype'],
    proxy: {
         type: 'ajax',
         url: 'column/getTreeList.do'
    },
    
    reader: {
        type: 'json'
       
    },
    root: {
         text: '树根',
         id: '00',
         expanded: false
    },
    autoLoad : true,
    folderSort: true,
         sorters: [{
            property: 'leaf',
            direction: 'ASC'
     }]
});